package com.ruoyi.fireman.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.io.Serializable;
import java.util.Date;

/**
 * 图片位置对象 t_image_position
 * 
 * @author ruoyi
 * @date 2021-08-30
 */
@TableName(value = "t_image_position")
public class TImagePosition implements Serializable
{
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 图片位置 */
    @Excel(name = "图片位置")
    private String position;

    /** 关联图片主键t_image.id */
    @Excel(name = "关联图片主键t_image.id")
    private Long tImageId;

    /** 图片位置备注 */
    @Excel(name = "图片位置备注")
    private String positionRemark;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /** 关联图片表 */
    @TableField(exist = false)
    private String url;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setPosition(String position) 
    {
        this.position = position;
    }

    public String getPosition() 
    {
        return position;
    }
    public void settImageId(Long tImageId) 
    {
        this.tImageId = tImageId;
    }

    public Long gettImageId() 
    {
        return tImageId;
    }
    public void setPositionRemark(String positionRemark) 
    {
        this.positionRemark = positionRemark;
    }

    public String getPositionRemark() 
    {
        return positionRemark;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("position", getPosition())
            .append("tImageId", gettImageId())
            .append("positionRemark", getPositionRemark())
            .append("createTime", getCreateTime())
            .append("url", getUrl())
            .toString();
    }
}
